﻿
namespace TrackSystem.IO.Formula
{ 
    /// <summary>
    /// 返回信息类
    /// </summary>
    public class ResultMessage 
    {
        /// <summary>
        /// 返回信息
        /// </summary>
        public string Message{ get; set; } = "OK";

        /// <summary>
        ///  是否成功
        /// </summary>
        public bool Result { get; set; } = true;

        /// <summary>
        /// 操作影响行数
        /// </summary>
        public int Count { get; set; } = 0;

        public object? Data { get; set; } = null;


        public ResultMessage(string msg = "OK")
        {
            Message = msg;
        }

        public ResultMessage(string msg, bool b)
        {
            Message = msg; Result = b;
        }
    }
}
